<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name="label.personalInfo" /></title>
<script type="text/javascript">
	function modifyPassword() {
		m = document.all("modifyPassword");
		m.style.display = (m.style.display == "none" ? "block" : "none");
	}
</script>
</head>
<body>
	<jsp:include page="top.jsp" flush="true" />
	<form action="system!modifyPersonal" method="post">
		<s:text name="label.ID" />
		${user.id}
		<s:text name="label.name" />
		${user.name} <br>
		<s:text name="label.class" />
		${user.clazz.name}
		<s:text name="label.permissions" />
		${user.role} <br>
		<s:text name="label.nickname" />
		<s:textfield name="user.nickname" />
		<s:text name="label.description" />
		<s:textfield name="user.descrip" />
		<br>
		<s:text name="label.selectedCourse" />
		<s:iterator value="user.courses">
			<s:property value="name" />
		</s:iterator>
		<br>
		<div id="modifyPassword" style="display: none">
			<s:text name="label.oldPassword" />
			<s:textfield name="oldPassword" />
			${oldPasswordMsg} <br>
			<s:text name="label.newPassword" />
			<s:textfield name="newPassword" />
			<br>
			<s:text name="label.confirmPassword" />
			<s:textfield name="confirmPassword" />
			${conformPasswordMsg} <br>
		</div>
		<input type="button" value="<s:text name="label.modifyPassword" />"
			onclick="modifyPassword()" />
		<s:submit key="label.confirm" />
		<s:hidden name="userId" />
	</form>
</body>
</html>